package com.example.mscloud.service;

import com.example.mscloud.common.entities.Payment;
import com.example.mscloud.common.entities.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface FeignOrderService {

    @GetMapping("/payment/create")
    CommonResult<Payment> paymentCreate(Payment payment);

    @GetMapping("/payment/info/{id}")
    CommonResult<Payment> paymentInfo(@PathVariable("id") Long id);

}
